package com.tensquare.qa.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * Created by 悟空 on 2021/3/20 23:35
 */
@Data
@TableName("tb_reply")  //回答表
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class Reply {
    //ID
    @TableId
    private String id;

    //问题ID
    @TableField("problemid")
    private String problemid;

    //回答内容
    @TableField("content")
    private String content;

    //回答日期
    @TableField("createtime")
    private Date createtime;

    //更新日期
    @TableField("updatetime")
    private Date updatetime;

    //回答人ID
    @TableField("userid")
    private String userid;

    //回答人昵称
    @TableField("nickname")
    private String nickname;
}
